package com.whfc.fim.dao;

import com.whfc.fim.dto.FimAlgTimeDTO;
import com.whfc.fim.entity.FimAlgDeviceCheckTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2021-01-23 16:14
 */
@Repository
public interface FimAlgDeviceCheckTimeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FimAlgDeviceCheckTime record);

    int insertSelective(FimAlgDeviceCheckTime record);

    FimAlgDeviceCheckTime selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FimAlgDeviceCheckTime record);

    int updateByPrimaryKey(FimAlgDeviceCheckTime record);

    /**
     * 查询检测时间段
     *
     * @param ruleId 配置ID
     * @return
     */
    List<FimAlgTimeDTO> selectByCheckRuleId(@Param("ruleId") Integer ruleId);
}